package demo5;
/*

class Base {
    public int a = 9;
    public int b = 99;
}
class Derived extends Base {
    public int a = 88;
    public void method() {
        a = 1;
        b = 2;
        System.out.println("a: " + super.a);
        System.out.println("a: " + this.a);
        System.out.println("b: " + a);
    }
}
public class Test2 {
    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();
    }
}


*/

/*

class Base {
    public void method1() {
        System.out.println("Base:method()");
    }
}
class Derived extends Base {
    public void method1() {
        System.out.println("Derived:method()");
    }
    public void method2() {
        System.out.println("Derived:method()");
    }
    public void test() {
        super.method1();
        method2();
    }
}
public class Test2 {
    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.test();
    }
}*/
